﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CafeTek
{
    public partial class FrmPrintPay : Form
    {
        public FrmPrintPay()
        {
            InitializeComponent();
        }
        public void printPay(DataView dv)
        {
            rptPayment pr = new rptPayment();
            
            pr.SetDataSource(dv);
            crystalReportViewer1.ReportSource = pr;

        }

        public void PrintTotal(DataView dv)
        {
            rptTotalPrice pr = new rptTotalPrice();
            pr.SetDataSource(dv);
            crystalReportViewer1.ReportSource = pr;
        }
        private void FrmPrintPay_Load(object sender, EventArgs e)
        {

        }
    }
}
